<div>
    <table class="table table-hover">
        <thead>
        <tr>
            <th width="30%">名称</th>
            <th width="10%">命名空间</th>
            <th width="15%">概况</th>
            <th width="35%">镜像</th>
            <th width="15%">发布时间</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-if="ser.newRs">
            <td><a ui-sref="k8s-rs-detail.pod({name:ser.newRs.objectMeta.name,namesp: ser.newRs.objectMeta.namespace,
             kDbCode: ser.k8sCode})">{{ser.newRs.objectMeta.name}}</a></td>
            <td>{{ser.newRs.objectMeta.namespace}}</td>
            <td>
                <ul class="list-inline">
                    <li ui-tooltip="{{ser.newRs.pods.running}} Running" class="text-success"><i class="fa fa-circle"></i> {{ser.newRs.pods.running}}</li>
                    <li ui-tooltip="{{ser.newRs.pods.desired}} Desired"><i class="fa fa-circle"></i> {{ser.newRs.pods.desired}}</li>
                </ul>
            </td>
            <td>{{ser.newRs.containerImages.join(', ')}}</td>
            <td>{{ser.newRs.objectMeta.creationTimestamp | date:'yyyy-MM-d HH:mm:ss'}}</td>
        </tr>
        <tr ng-if="ser.oldTable.length"><td colspan="5">历史版本<i class="fa fa-level-down margin-left-5"></i></td></tr>
        <tr ng-repeat="elem in ser.oldTable">
            <td><a ui-sref="k8s-rs-detail.pod({name:elem.objectMeta.name,namesp: elem.objectMeta.namespace, kDbCode: ser.k8sCode})">{{::elem.objectMeta.name}}</a></td>
            <td>{{::elem.objectMeta.namespace}}</td>
            <td>
                <ul class="list-inline">
                    <li ui-tooltip="{{::elem.pods.running}} Running" class="text-success"><i class="fa fa-circle"></i> {{::elem.pods.running}}</li>
                    <li ui-tooltip="{{::elem.pods.desired}} Desired"><i class="fa fa-circle"></i> {{::elem.pods.desired}}</li>
                </ul>
            </td>
            <td>{{::elem.containerImages.join(', ')}}</td>
            <td>{{::elem.objectMeta.creationTimestamp | date:'yyyy-MM-d HH:mm:ss'}}</td>
        </tr>
        </tbody>
    </table>
    <!--Loading-->
    <div class="loading" ng-show="!ser.newRs"></div>
</div>